package com.ruoyi.yp.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.yp.domain.BsYp;
import com.ruoyi.yp.domain.bo.BsYpBo;
import com.ruoyi.yp.domain.vo.BsYpVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 样品Mapper接口
 *
 * @author zyb
 * @date 2024-03-29
 */

public interface BsYpMapper extends BaseMapperPlus<BsYpMapper, BsYp, BsYpVo> {

    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<BsYpVo> page(Page<Object> build, @Param("params") BsYpBo bo);
}
